package com.hospital.ssm.service.serviceimpl;

import com.hospital.ssm.mapper.MedicineTypeMapper;
import com.hospital.ssm.model.MedicineType;
import com.hospital.ssm.service.MedicineTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author King
 * @create 2021-01-27-10:26
 * 药品类型实现类
 */
@Service
public class MedicineTypeServiceImpl implements MedicineTypeService {

    @Autowired
    private MedicineTypeMapper medicineTypeMapper;

    @Override
    public List<MedicineType> querymTypeAll() throws Exception {
     return medicineTypeMapper.querymTypeAll();
    }

    @Override
    public int addmType(MedicineType medicineType) throws Exception {
       return medicineTypeMapper.addmType(medicineType);
    }

    @Override
    public int uptmType(MedicineType medicineType) throws Exception {
        return medicineTypeMapper.uptmType(medicineType);
    }

    @Override
    public int delmType(Integer mtId) throws Exception {
        return medicineTypeMapper.delmType(mtId);
    }
}
